/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package memsim.instructions;


/**
 *
 * @author joe
 */
public class DecodedObject {

    private int opCode;
    private int dstReg;
    private int srcReg1;
    private int srcReg2;
    private boolean empty = false;
    // need more
    public DecodedObject(int op, int dst, int src1, int src2){
        opCode = op;
        dstReg = dst;
        srcReg1 = src1;
        srcReg2 = src2;

        if((op == 0) && (dst == 0) &&(src1 == 0) &&(src2 == 0))
        {
            empty = true;
            System.out.println("i'm empty");
        }
        
    }

    public boolean isEmpty()
    {
        return empty;
    }

    /**
     * @return the opCode
     */
    public int getOpCode() {
        return opCode;
    }

    /**
     * @param opCode the opCode to set
     */
    public void setOpCode(int opCode) {
        this.opCode = opCode;
    }

    /**
     * @return the dstReg
     */
    public int getDstReg() {
        return dstReg;
    }

    /**
     * @param dstReg the dstReg to set
     */
    public void setDstReg(int dstReg) {
        this.dstReg = dstReg;
    }

    /**
     * @return the srcReg1
     */
    public int getSrcReg1() {
        return srcReg1;
    }

    /**
     * @param srcReg1 the srcReg1 to set
     */
    public void setSrcReg1(int srcReg1) {
        this.srcReg1 = srcReg1;
    }

    /**
     * @return the srcReg2
     */
    public int getSrcReg2() {
        return srcReg2;
    }

    /**
     * @param srcReg2 the srcReg2 to set
     */
    public void setSrcReg2(int srcReg2) {
        this.srcReg2 = srcReg2;
    }

    
}
